#!/bin/bash
set -e
pwd
cd ~
source .bash_profile
service="/usr/local/mongodb";
echo "开始启动服务-------->"$service""
cd $service
pwd
sudo mongod --dbpath data
echo "启动成功-------->"$service
#打开服务darly-enoad-service